using System;

namespace Entities
{
	public class AttackAction : MobAction
	{
		public AttackAction ()
		{
			type = TypeAction.attack;
		}
		
		public override MobAction nextAction(Mob mob, Fighter target){
			
			if (target.distance(mob) <= attackrange){
				return new AttackAction();
			}
			
			return new IdleAction();
				
				
			
			
		}
	}
}

